﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JGSY.CourseManagement.Infrastructure.Configuration
{
    // Infrastructure/Configuration/AppSettings.cs
    namespace JGSY.CourseManagement.Infrastructure.Configuration
    {
        public class AppSettings
        {
            public DatabaseSettings Database { get; set; } = new DatabaseSettings();
            public SessionSettings Session { get; set; } = new SessionSettings();
            // 其他配置部分...
        }

        public class DatabaseSettings
        {
            public string MainDataConnection { get; set; } = string.Empty;
            public string UserSessionConnection { get; set; } = string.Empty;
        }

        public class SessionSettings
        {
            public int SessionTimeoutMinutes { get; set; } = 30;
            public bool AutoCleanupEnabled { get; set; } = true;
        }
    }
}
